﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using System.Data;

namespace DataAccess
{
    public class Phong_Info
    {
        public string maphong { get; set; }
        public string tenloaiphong { get; set; }
        public bool dadat { get; set; }
        public bool dathue { get; set; }
        public static List<Phong_Info> All()
        {
            return CBO.FillCollection<Phong_Info>(DataProvider.Instance.ExecuteReader("Phong_GetAll"));
        }
        public static DataSet GetAll()
        {
            try
            {
                return DataProvider.Instance.ExecuteDataset("Phong_GetAll");
            }
            catch (Exception)
            {

                return null;
            }
        }
        public static DataSet AllName()
        {
            try
            {
                return DataProvider.Instance.ExecuteDataset("Phong_AllName");
            }
            catch (Exception)
            {

                return null;
            }
        }
        public static DataSet ShowTrangThaiPhong()
        {
            try
            {
                return DataProvider.Instance.ExecuteDataset("Phong_TrangThaiPhong");
            }
            catch (Exception)
            {

                return null;
            }
        }
    }
}
